package com.dcw.lixb.designmode.command;

/**
 * @author lixiaobin
 * @date 2020-07-23 16:52:08
 * @desc 描述信息
 */
public class Stock {
    private String name;
    private int quantity;

    public Stock(String name, int quantity) {
        this.name = name;
        this.quantity = quantity;
    }

    public void buy() {
        System.out.println("buy "+name+" : "+quantity);
    }

    public void sell() {
        System.out.println("sell "+name+" : "+quantity);
    }
}
